package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Claim;
import cn.wolfcode.crm.domain.ClaimItem;
import cn.wolfcode.crm.domain.Employee;
import cn.wolfcode.crm.query.ClaimQueryObject;
import cn.wolfcode.crm.util.PageResult;

import java.util.List;

public interface IClaimService {
    void deleteByPrimaryKey(Long id);

    void insert(Claim record);

    Claim selectByPrimaryKey(Long id);

    List<Claim> selectAll();

    void updateByPrimaryKey(Claim record);

    PageResult query(ClaimQueryObject qo);

    void changeState(Long id);

    PageResult itemQuery(ClaimQueryObject qo);

    String selectStagingByStaging(String staging);

    ClaimItem getCliamItemByClaimId(Long claimId);

    void updateByAudit(Claim claim);

    List<Employee> selectAllEmp();

    void update4Dispose(ClaimItem claimItem);

    void changeItemState(Long id);
}
